<template>
  <div>
    <!-- 文库资料 -->
    <div class="warp">
      <!-- 副导航栏 -->
      <div class="breadcrumb bg-white default-border">
        <el-breadcrumb separator-class="el-icon-arrow-right" class="ul">
          <el-breadcrumb-item class="li" :to="{ path: '/' }"
            >首页</el-breadcrumb-item
          >
          <el-breadcrumb-item class="li"> 文库资料 </el-breadcrumb-item>
        </el-breadcrumb>
      </div>
      <!-- 选项 -->
      <div class="subnav-main pad-20 mt-10">
        <div class="subnav-row">
          <div class="row-title">学段</div>
          <ul class="nav-row-content">
            <li class="active">
              <span> 初中 </span>
            </li>
            <li class="">
              <span> 高中 </span>
            </li>
          </ul>
        </div>
        <div class="line mb-10 mt-10"></div>
        <div class="subnav-row">
          <div class="row-title">科目</div>
          <ul class="nav-row-content">
            <li class="active"><span> 语文 </span></li>
            <li class=""><span>数学</span></li>
            <li class=""><span>英语</span></li>
            <li class=""><span>物理</span></li>
            <li class=""><span>化学</span></li>
            <li class=""><span>生物</span></li>
            <li class=""><span>政治</span></li>
            <li class=""><span>历史</span></li>
            <li class=""><span>地理</span></li>
          </ul>
        </div>
        <div class="line mb-10 mt-10"></div>
        <div class="subnav-row">
          <div class="row-title">版本</div>
          <ul class="nav-row-content">
            <li class="active">
              <span> 部编版(2016) </span>
            </li>
          </ul>
        </div>
        <div class="line mb-10 mt-10"></div>
        <div class="subnav-row">
          <div class="row-title">年级</div>
          <ul class="nav-row-content">
            <li class="active"><span class=""> 七年级上册 </span></li>
            <li class=""><span> 七年级下册 </span></li>
            <li class=""><span> 八年级上册 </span></li>
            <li class=""><span> 八年级下册 </span></li>
            <li class=""><span> 九年级上册 </span></li>
            <li class=""><span> 九年级下册 </span></li>
          </ul>
        </div>
      </div>

      <!-- 主体内容 -->
      <div class="papers-main-warp mt-20 mb-20">
        <!-- 左侧预览栏 -->

        <div class="left-nav bg-white default-border pad-10">
          <div class="sidebar">
            <h3>目录</h3>
          </div>
          <div class="nav-ul">
            <ul>
              <li>
                <i class="dot"></i>
                <a href="" class=""> 第一单元 </a>
              </li>
              <li>
                <a href="" class=""> 阅读 </a>
              </li>
              <li>
                <a href="" class=""> <i class="pl-15"></i> 1 春/朱自清 </a>
              </li>
              <li>
                <a href="" class="">
                  <i class="pl-15"></i> 2 济南的冬天/老舍
                </a>
              </li>
              <li>
                <a href="" class="">
                  <i class="pl-15"></i> 3* 雨的四季/刘湛秋
                </a>
              </li>
              <li>
                <a href="" class=""> <i class="pl-15"></i> 4 古代诗歌四首 </a>
              </li>
              <li>
                <a href="" class=""> <i class="pl-15"></i> 观沧海/曹操 </a>
              </li>
              <li>
                <a href="" class="">
                  <i class="pl-15"></i> 闻王昌龄左迁龙标遥有此寄/李白
                </a>
              </li>
              <li>
                <a href="" class=""> <i class="pl-15"></i> 次北固山下/王湾 </a>
              </li>
              <li>
                <a href="" class="">
                  <i class="pl-15"></i> 天净沙·秋思/马致远
                </a>
              </li>
              <li>
                <a href="" class=""> 写作 </a>
              </li>
              <li>
                <a href="/beike/subject-2/books-14/" class="">
                  <i class="pl-15"></i>热爱生活，热爱写作
                </a>
              </li>
              <li>
                <a href="/beike/subject-2/books-15/" class="">
                  单元综合与测试
                </a>
              </li>
            </ul>
          </div>
        </div>

        <!-- 内容 -->

        <div class="papers-list bg-white default-border">
          <div class="papers-tab">
            <li class="active">
              <a href="" class="exact-active-link active-link"> 全部 </a>
            </li>
            <li class="">
              <a href="" class=""> 试卷 </a>
            </li>
            <li class="">
              <a href="" class=""> 教案 </a>
            </li>
            <li class="">
              <a href="" class=""> 课件 </a>
            </li>
          </div>

          <div class="list-content mt-10">
            <div class="papers-item">
              <div class="papers-thumbnail">
                <a href="" class="img-block">
                  <img
                    src="../assets/imgs/pic-1.jpg"
                    alt="部编版八年级语文上册第五单元阅读练习题及答案"
                  />
                  <i class="page-num">24P</i>
                </a>
              </div>
              <div class="papers-info">
                <h3>
                  <a href="" class="">
                    部编版八年级语文上册第五单元阅读练习题及答案
                  </a>
                </h3>
                <p>
                  <span>阅读量：994</span> <span>下载量：100</span>
                  <span>上传时间：2021-11-19 12:29:22</span>
                </p>
              </div>
              <div class="down-info">
                <div class="down-btn">
                  <a href="" class=""> 立即下载 </a>
                </div>
              </div>
            </div>
            <div class="papers-item">
              <div class="papers-thumbnail">
                <a href="" class="img-block">
                  <img
                    src="../assets/imgs/pic-1.jpg"
                    alt="部编版八年级语文上册第五单元阅读练习题及答案"
                  />
                  <i class="page-num">24P</i>
                </a>
              </div>
              <div class="papers-info">
                <h3>
                  <a href="" class="">
                    部编版八年级语文上册第五单元阅读练习题及答案
                  </a>
                </h3>
                <p>
                  <span>阅读量：994</span> <span>下载量：100</span>
                  <span>上传时间：2021-11-19 12:29:22</span>
                </p>
              </div>
              <div class="down-info">
                <div class="down-btn">
                  <a href="" class=""> 立即下载 </a>
                </div>
              </div>
            </div>
            <div class="papers-item">
              <div class="papers-thumbnail">
                <a href="" class="img-block">
                  <img
                    src="../assets/imgs/pic-1.jpg"
                    alt="部编版八年级语文上册第五单元阅读练习题及答案"
                  />
                  <i class="page-num">24P</i>
                </a>
              </div>
              <div class="papers-info">
                <h3>
                  <a href="" class="">
                    部编版八年级语文上册第五单元阅读练习题及答案
                  </a>
                </h3>
                <p>
                  <span>阅读量：994</span> <span>下载量：100</span>
                  <span>上传时间：2021-11-19 12:29:22</span>
                </p>
              </div>
              <div class="down-info">
                <div class="down-btn">
                  <a href="" class=""> 立即下载 </a>
                </div>
              </div>
            </div>
            <div class="papers-item">
              <div class="papers-thumbnail">
                <a href="" class="img-block">
                  <img
                    src="../assets/imgs/pic-1.jpg"
                    alt="部编版八年级语文上册第五单元阅读练习题及答案"
                  />
                  <i class="page-num">24P</i>
                </a>
              </div>
              <div class="papers-info">
                <h3>
                  <a href="" class="">
                    部编版八年级语文上册第五单元阅读练习题及答案
                  </a>
                </h3>
                <p>
                  <span>阅读量：994</span> <span>下载量：100</span>
                  <span>上传时间：2021-11-19 12:29:22</span>
                </p>
              </div>
              <div class="down-info">
                <div class="down-btn">
                  <a href="" class=""> 立即下载 </a>
                </div>
              </div>
            </div>
          </div>

          <!-- 分页栏 -->
          <ul class="app-pagination">
            <li>
              <a href="" class=""> 首页 </a>
            </li>
            <li>
              <a href="" class=""> 上一页 </a>
            </li>
            <li class="active">
              <a href="" class="exact-active-link active-link"> 1 </a>
            </li>
            <li class="">
              <a href="" class=""> 2 </a>
            </li>
            <li class="">
              <a href="" class=""> 3 </a>
            </li>
            <li class="">
              <a href="" class=""> 4 </a>
            </li>
            <li class="">
              <a href="" class=""> 5 </a>
            </li>
            <li>
              <a href="" class=""> 下一页 </a>
            </li>
            <li>
              <a href="" class=""> 尾页 </a>
            </li>
            <li class="total"><span>共 2233 条</span></li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
// 样式穿透
.breadcrumb ::v-deep .is-link {
  color: #48c5a3;
  cursor: pointer;
}

.breadcrumb {
  margin-top: 10px;
  padding: 15px 10px;
  .ul {
    .li {
      .is-link {
        color: #48c5a3;
      }
    }
  }
}
.mt-10 {
  margin-top: 10px;
}
.pad-20 {
  padding: 20px;
}
.line {
  width: 100%;
  height: 1px;
  background-color: #eee;
}
.mb-10 {
  margin-bottom: 10px;
}
.pad-10 {
  padding: 10px;
}
.bg-white {
  background: #fff;
}
.mb-20 {
  margin-bottom: 20px;
}
.mt-20 {
  margin-top: 20px;
}
.default-border {
  border-radius: 6px;
  border-radius: 6px;
}
.subnav-main {
  box-sizing: border-box;
  width: 100%;
  background: #fff;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  .subnav-row {
    display: flex;
    align-items: center;
    .row-title {
      font-size: 16px;
      font-weight: 600;
      color: #f76447;
      background: rgba(247, 100, 71, 0.14902);
      border-radius: 4px;
      padding: 0 12px;
      height: 32px;
      line-height: 32px;
      width: 60px;
      text-align: center;
    }
    .nav-row-content {
      flex: 1;
      padding: 5px 0;
      font-size: 14px;
      font-weight: 400;
      color: #333;
      margin-left: 20px;
      li {
        margin-right: 20px;
        border-radius: 6px;
        color: #fff;
        &:hover {
          background-color: #48c5a3;
        }
      }
      span {
        display: block;
        padding: 4px 12px;
        color: #333;
        cursor: pointer;
      }
      .active {
        background-color: #48c5a3;
        span{
           color: #fff;
        }
      }
    }
  }
}
.papers-main-warp {
  display: flex;
  .left-nav {
    width: 240px;
    .nav-ul {
      li {
        position: relative;
        display: block;
        position: relative;
        display: block;
        .dot {
          position: absolute;
          left: -3px;
          top: 14px;
          width: 8px;
          height: 8px;
          background: #41ccb4;
          border-radius: 50%;
        }
        i {
          & ~ a {
            padding: 10px 15px;
          }
        }
        a {
          display: block;
          border-left: 2px solid #f2f2f2;
          padding: 15px 15px 15px 30px;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          word-break: break-all;
        }
        &:hover {
          background: #41ccb4;
        }
      }
    }
  }
  .papers-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-left: 20px;
    .papers-tab {
      display: flex;
      font-size: 18px;
      font-weight: 600;
      color: #333;
      margin-left: 30px;
      li {
        margin-right: 50px;
        line-height: 70px;
        cursor: pointer;
        border-bottom: 2px solid #fff;
      }
    }
    .papers-item {
      padding: 15px;
      margin: 10px 0;
      display: flex;
      border: 1px solid;
      border-color: #fff #fff #f2f2f2;
      &:hover {
        border: 1px solid #48c5a3;
      }
    }
  }
}
.sidebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  h3 {
    padding: 10px;
    font-size: 18px;
    font-weight: 600;
  }
}
/* 主内容右侧 */
.papers-main-warp .papers-list .papers-tab .active,
.papers-main-warp .papers-list .papers-tab li:hover {
  color: #48c5a3;
  border-bottom: 2px solid #48c5a3;
}
.active-link {
  color: #48c5a3;
}
.papers-item {
  .papers-thumbnail {
    width: 100px;
    .img-block {
      display: block;
      position: relative;
      width: 80px;
      border: 1px solid #f2f2f2;
      img {
        width: 100%;
        text-align: center;
      }
    }
    .page-num {
      position: absolute;
      right: 0;
      bottom: 0;
      background: #48c5a3;
      color: #fff;
      font-size: 12px;
      padding: 2px 4px;
    }
  }
  .papers-info {
    h3 {
      font-size: 18px;
      font-weight: 500;
      line-height: 1.6;
    }
    p {
      display: flex;
      justify-content: space-between;
      color: #999;
    }
  }
  .down-info {
    width: 100px;
    display: flex;
    margin-left: 15px;
    align-items: center;
    .down-btn {
      padding: 8px 15px;
      border-radius: 25px;
      background-color: #39b392;
      a {
        color: #fff;
      }
    }
  }
}
.papers-list {
  .papers-item {
    .papers-info {
      display: flex;
      flex: 1;
      flex-direction: column;
      margin-left: 15px;
      justify-content: space-between;
    }
  }
}
.app-pagination {
  margin: 40px auto;
  text-align: center;
  li {
    display: inline-block;
    margin: 0 6px;
    a {
      padding: 5px 10px;
      display: inline-block;
      color: #626262;
      background: #fff;
      border-radius: 2px;
      border: 1px solid #ddd;
    }
  }
}
.app-pagination li .active-link,
.app-pagination li.active a,
.app-pagination li a:hover {
  color: #fff;
  border: 1px solid #48c5a3;
  background: #48c5a3;
}
</style>